package com.smsc.headend.task.engine.service.protocol.imp;

import com.smsc.headend.task.engine.po.PacketTypeDesc;
import com.smsc.headend.task.engine.service.protocol.PacketDecodeService;

public class AnsiPacketDecodeServiceImpl implements PacketDecodeService {
    @Override
    public PacketTypeDesc getPacketType(String hexPacket, Integer direction) {
        PacketTypeDesc packetTypeDesc = new PacketTypeDesc();
        packetTypeDesc.setType(direction == 1 ? "Request" : "Response");
        packetTypeDesc.setDesc("Success");
        return packetTypeDesc;
    }

}
